package adapter.objectAdapter.voltageTransform.adapter;

import adapter.objectAdapter.voltageTransform.src.Power220V;
import adapter.objectAdapter.voltageTransform.dst.Power5V;

public class VoltageAdapter implements Power5V {

    private Power220V power220V;

    public VoltageAdapter(Power220V power220V) {
        this.power220V = power220V;
    }


    @Override
    public int output5V() {
        int transformedVoltage = power220V.output220V() / 44;
        return  transformedVoltage;
    }
}
